package kr.saeildamil.androidstudy.ch06;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class Ch06Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch06_main);
	}
		public void mOnClick(View v) {
			switch (v.getId()) {
	
		case R.id.Multipage_btn:
		startActivity(new Intent(this, MultiPageEx.class));
		break;
	case R.id.CodeLayout_btn:
		startActivity(new Intent(this, CodeLayout.class));
		break;	
	case R.id.inflation_btn:
		startActivity(new Intent(this, InflationEx.class));
		break;	
	case R.id.LayoutParameter_btn:
		startActivity(new Intent(this, LayoutParameterEx.class));
		break;
	case R.id.SetParameter_btn:
		startActivity(new Intent(this, SetParameterEx.class));
		break;	
	case R.id.GridHorz_btn:
		startActivity(new Intent(this,GridLayoutEx.class));
		break;
	case R.id.CellPosition_btn:
		startActivity(new Intent(this, CellPositionEx.class));
		break;
	case R.id.CellSpan_btn:
		startActivity(new Intent(this, CellSpanEx.class));
		break;
	case R.id.TwoLine_btn:
		startActivity(new Intent(this, TwoLineEx.class));
		break;
	}
}
		@Override
		public boolean onCreateOptionsMenu(Menu menu) {
			// Inflate the menu; this adds items to the action bar if it is present.
			getMenuInflater().inflate(R.menu.main, menu);
			return true;
		}

	}
